package com.valsong.sandbox.mock;

import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Stage;


/**
 * GuiceBeanFactory
 *
 * @author Val Song
 */
public class GuiceBeanFactory {


    public static Injector injector() {
        return InjectorHolder.INJECTOR;
    }

    private static class InjectorHolder {
        private static final Injector INJECTOR = Guice.createInjector(Stage.PRODUCTION, new GuiceBeanModule());
    }

}
